﻿using MODEL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using DAL;

namespace BLL
{
   public  class KPurchaseBLL:BaseBLL<MODEL.PurchaseModel>
    {
        //指定的需要实例化的工厂的名字
        private const string _type = "KPurchaseDAL";
        //实例化相应的接口类
        private IDAL.PurchaseIDAL pdal;
        //通过构造函数调用基类反射过来的方法
        public KPurchaseBLL():base(_type)
        {
            pdal = base.dal as IDAL.PurchaseIDAL;
            if (pdal == null)
            {
                throw new NullReferenceException(_type);

            }
        }

        /// <summary>
        /// 获取采购订单表数据
        /// </summary>
        /// <returns></returns>
        public List<PurchaseModel> K_GetPurchase()
        {
       
            return pdal.K_GetPurchase();
             
        }
    }
}
